<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>${systemName}</title>
    <link rel="stylesheet" href="${ctxPath}/assets/common/layui/css/layui.css"/>
    <link rel="stylesheet" href="${ctxPath}/assets/common/module/admin.css?v=1"/>
    <link rel="stylesheet" href="${ctxPath}/assets/expand/css/style.css" media="all"/>
    <style>
        .console-link-block {
            display: block;
            position: relative;
            color: #fff;
            font-size: 12px;
            padding: 25px 20px;
            border-radius: 4px;
            overflow: hidden;
            box-shadow: 0px 3px 5px rgba(0, 0, 0, .1);
            background-color: rgb(155, 197, 57);
        }

        .console-link-block .console-link-block-num {
            font-size: 20px;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .console-link-block .console-link-block-icon {
            height: 70px;
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
        }

        .console-link-block .console-link-block-band {
            background-color: rgb(227, 42, 22);
            font-size: 14px;
            position: absolute;
            width: 80px;
            padding: 2px 0;
            text-align: center;
            transform: rotate(45deg);
            right: -21px;
            top: 8px;
            color: rgba(255, 255, 255, .9);
            z-index: 1;
        }



        /** 设置每个快捷块的颜色 */
        #consoleLink > div:first-child .console-link-block {
            background-color: rgb(155, 197, 57);
        }

        #consoleLink > div:nth-child(2) .console-link-block {
            background-color: rgb(85, 165, 234);
        }

        #consoleLink > div:nth-child(3) .console-link-block {
            background-color: rgb(157, 175, 291);
        }

        #consoleLink > div:nth-child(4) .console-link-block {
            background-color: rgb(245, 145, 162);
        }

        #consoleLink > div:nth-child(5) .console-link-block {
            background-color: rgb(254, 170, 79);
        }

        #consoleLink > div:last-child .console-link-block {
            background-color: rgb(64, 212, 176);
        }
    </style>

</head>

<body>
<div class="page-loading">
    <div class="rubik-loader"></div>
</div>

<div class="layui-fluid">


    <div id="consoleLink" class="layui-row layui-col-space15">

        @if(isNotEmpty(projects)){
        @for(item in projects){
        <div class="layui-col-lg2 layui-col-md3 layui-col-sm4 layui-col-xs6">
            @if(item.id==projectId){
               <div class="console-link-block" ew-title="${item.projectName}">
                <div class="console-link-block-num">${item.projectName}</div>
                <div class="console-link-block-text">${item.projectDesc}</div>
                <div class="console-link-block-band">当前</div>
            </div>
            @}else{
            <div class="console-link-block" style="cursor:pointer;"
                 onclick="javascript:window.top.gotoProject('${item.id}')"
                 ew-title="${item.projectName}">
                <div class="console-link-block-num">${item.projectName}</div>
                <div class="console-link-block-text">${item.projectDesc}</div>
            </div>
            @}
        </div>
        @}
        @}
    </div>



</div>
<script type="text/javascript" src="${ctxPath}/assets/common/layui/layui.js"></script>
<script type="text/javascript" src="${ctxPath}/assets/common/js/common.js?v=1"></script>
</body>

</html>